package com.example.javasample.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 博文和标签关联关系
 *
 * @author Kylin
 */
@Schema(name = "博文和标签关联关系", description = "博文和标签关联关系")
@TableName("`post_tag`")
@Data
@EqualsAndHashCode(callSuper = true)
public class PostTagDO extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "博文和标签关联关系ID")
    private Long id;

    @Schema(description = "博文ID")
    private Long postId;

    @Schema(description = "标签ID")
    @TableField(value = "tag_id")
    private Long tagId;

}
